﻿using Newtonsoft.Json;

namespace Dyao.Book.Contract
{
    public class BookSourceSettingFilterDto : PaginationFilterDto
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 书源Key
        /// </summary>
        public string SourceKey { get; set; }
    }

    public class BookSourceSettingResultDto
    {

        /// <summary>
        /// ID
        /// </summary>
        [JsonProperty("id")]
        public string ID { get; set; }

        /// <summary>
        /// 书源名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 请求头
        /// </summary>
        public string Header { get; set; }

        /// <summary>
        /// 书源地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 搜索地址
        /// </summary>
        public string SearchUrl { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        public bool Enabled { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string CreateUserName { get; set; }

        /// <summary>
        /// 爬取时间
        /// </summary>
        public DateTime CreateDateTime { get; set; }


        /// <summary>
        /// 用户名称
        /// </summary>
        public string UpdateUserName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateDateTime { get; set; }

        /// <summary>
        /// 爬虫规则
        /// </summary>
        public string SpiderRule { get; set; }

        /// <summary>
        /// 目标类型
        /// </summary>
        public string SourceKey { get; set; }
    }
}
